<?php

 class KT_remote_server_getData extends KT_system_core_ {
 	
 	private $host, $port;
 	private $login, $pass, $liginnig = false;
 	private $class, $method, $args;
 	
 	private $methodsLogs = array();
 	
 	function __construct($host, $port = 80, $user_params = array(), $class, $method="", $args = array()) {
 		
 		$this->host   = $host;
 		$this->port   = $port;
 		if(isset($user_params[0]) && isset($user_params[0])) {
     		$this->login  = $user_params[0];
     		$this->pass   = $user_params[1];
     		$this->loginning = true;
        } else {
            $this->login = $this->pass = $this->loginning = false;
        }
 		
 		$this->class  = $class;
 		$this->method = $method;
 		$this->args   = $args;
 		
 	}
 	
 	function setMethod($method, $args=array()) {
 		$this->methodsLogs[] = array($method, $args);
 		
 		$oldM = $this->method;
 		$this->method = $method;
 		$this->args   = $args;
 		
 	}
 	
 	function getVar($w) {
 		return $this->$w;
 	}
 	
 }
 
?>
